import { createSlice } from "@reduxjs/toolkit";

export const userIsLogin = createSlice({
    name:"user",
    initialState:{
        isLogin : false,
        token : ""
    },
    reducers : {
        login: (state,action) => {
            state.value = action.payload;
        },
    }

});

export const loginChangeState = userIsLogin.actions.login;

export default userIsLogin.reducer;
